package com.nlx.notes.module.bean.dto.gold;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nlx.notes.module.bean.BaseDTO;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@Getter
@Setter
@ToString
public class GoldSaleAddDTO extends BaseDTO {

    /**
     * 黄金id
     */
    private Long goldId;

    @NotEmpty(message = "请输入购买的重量(克)")
    private String weight;

    @NotEmpty(message = "请输入购买的总价")
    private String totalPrice;


    @NotEmpty(message = "请输入购买的渠道")
    private String channel;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate saleDate;

    /**
     * 手续费
     */
    private String feeRatio;

    private String remarks;

    private Long userId;


}
